home *** CD-ROM | disk | FTP | other *** search
/ ASP Advantage 1994 2nd Q2 / The Association of Shareware Professionals - The Official ASP Advantage (2nd Quarter)(1994).bin / files / progming / unst13 / goodsoft < prev    next >
Encoding:
Text File  |  1993-08-16  |  11.1 KB  |  431 lines

  1. ;************************************************************************
  2. ; Universal INSTALL Demo Script File                                         
  3. ; This script uses most of the more advanced features of Universal INSTALL.  
  4. ;
  5. ; We use this script for creating the demo installation routine
  6. ;                                                                                                     
  7. ;************************************************************************
  8. ;
  9. [Setup main screen]
  10.   ClearScreen
  11.   BackplaneType Teal =▒
  12.   TopBar Red on Gray =Universal INSTALL Demonstration
  13.   BottomBar Black on Gray =Press F1 for more information
  14. ;--------
  15. ;
  16. ;--------
  17. [Intro Window]
  18.   BuildWindow
  19.     WindowColor =White
  20.     Border =Blue
  21.     StartRow =Center
  22.     StartColumn =Center
  23.     ColumnMargin =1
  24.     RowMargin =8
  25.     PopUp =No
  26.     ShadowType =Big
  27.     TopTitle =Welcome!
  28.     BottomTitle =Press ENTER to continue, ESC to quit
  29.   EndWindow
  30.   BuildWindow
  31.     WindowColor =Gray
  32.     StartRow =Window+1
  33.     StartColumn =Center
  34.     ShadowType =Small
  35.     ColumnMargin =8
  36.     RowMargin =0
  37.     Text White 1,7  =┌───────────────┐
  38.     Text White 1,8  =│               │
  39.     Text White 1,9  =└───────────────┘
  40.     Text Blue  4,8  =Version 1.30
  41.   EndWindow
  42.   BuildWindow
  43.     WindowColor =Blue
  44.     StartRow =Window+2
  45.     StartColumn =Window+2
  46.     ShadowType =Small
  47.     RowMargin =1
  48.     Text White Center =Universal Install
  49.     Text White Center =For easy installations
  50.   EndWindow
  51.   BuildWindow
  52.     WindowColor =Cyan
  53.     StartRow =Window+12
  54.     StartColumn =Center
  55.     ShadowType =Small
  56.     ShadowColor =Gray
  57.     RowMargin =0
  58.     ColumnMargin =6
  59.     Text Black Center =(C) Copyright 1992,93
  60.     Text Black Center =The GoodSoft Co.
  61.   EndWindow
  62.   Wait = Enter,Esc,F1
  63.   On (Esc) Jump =Quit
  64.   On (F1) Jump =About Demo
  65. ;--------
  66. ;
  67. ;--------
  68. [About Open Install]
  69.   BottomBar Black on Gray=
  70.   ClearPlane
  71.   BuildWindow
  72.     WindowColor =White
  73.     Border =Red
  74.     StartRow =Center
  75.     StartColumn =Center
  76.     ColumnMargin =14
  77.     RowMargin =8
  78.     PopUp =No
  79.     ShadowType =Big
  80.     BottomTitle =Press ENTER to continue, ESC to quit
  81.   EndWindow
  82.   BuildWindow
  83.     WindowColor =Gray
  84.     StartRow =Window+1
  85.     StartColumn =Center
  86.     ColumnMargin =2
  87.     RowMargin =1
  88.     ShadowType =Small
  89.     Text Black =Thank you for trying                  , the best
  90.     Text Black =DOS installation package on the market!
  91.     Text Black =
  92.     Text Red   =Some things to remember...
  93.     Text Black =
  94.     Text Black = All colors, text, windows, etc. are under YOUR control
  95.     Text Black =with Universal INSTALL - no "canned" routines here.
  96.     Text Black =Universal INSTALL can look like your own software!
  97.     Text Black =
  98.     Text Black =A custom installation program that matches the style
  99.     Text Black =of your software is available without ANY programming.
  100.     Text Red (25,1) =UNIVERSAL INSTALL
  101.   EndWindow
  102.   Wait =Enter,Esc
  103.   On (Esc) Jump =Quit
  104. ;----------
  105. ;
  106. ;----------
  107. [About Installation]
  108.   ClearPlane
  109.   BuildWindow
  110.     WindowColor =White
  111.     Border =Magenta
  112.     StartRow =Center
  113.     StartColumn =Center
  114.     ColumnMargin =10
  115.     RowMargin =8
  116.     PopUp =No
  117.     ShadowType =Big
  118.     Text Gray =
  119.     BottomTitle =Press ENTER to continue, ESC to quit
  120.   EndWindow
  121.   BuildWindow
  122.     WindowColor =Gray
  123.     StartRow =Center
  124.     StartColumn =Center
  125.     ShadowType =Small
  126.     ColumnMargin =2
  127.     RowMargin =1
  128.     Text Black Center =This installation demo will do the following:
  129.     Text Black Center =
  130.     Text Black 4,3  =Copy two small text files to your system's
  131.     Text Black 4,4  =hard disk to the directory you specify.
  132.     Text Black 4,6  =Add a sample line to your CONFIG.SYS file
  133.     Text Black 4,7  =(don't worry, it won't affect your setup)
  134.     Text Black 4,9  =Add a sample line to your AUTOEXEC.BAT file
  135.     Text Black 4,10 =(also won't affect your software setup)
  136.     Text Black 4,12 =Reboot your computer (if you choose).
  137.     Text Blue 1,3  =1)
  138.     Text Blue 1,6  =2)
  139.     Text Blue 1,9  =3)
  140.     Text Blue 1,12 =4)
  141.   EndWindow
  142.   Wait = Enter,Esc
  143.   On (Esc) Jump =Quit
  144. ;----------
  145. ;
  146. ;----------
  147. [Input directory]
  148.   ClearPlane
  149.   FindBootDrive
  150.   BuildWindow
  151.     WindowColor =Gray
  152.     Border =Blue
  153.     StartRow =Center
  154.     StartColumn =Center
  155.     ColumnMargin =2
  156.     RowMargin =2
  157.     ShadowType =Big
  158.     BottomTitle =Press ENTER to continue, ESC to quit
  159.     Text Black Center =In the space below, type the directory path where you would
  160.     Text Black Center =like INSTALL to copy the text files FILE1.TXT and FILE2.TXT
  161.     Text Black Center =
  162.     Text Blue Center  =This is an example of using input from
  163.     Text Blue Center  =the user to customize the installation process.
  164.     Text Blue =
  165.     Text Blue =
  166.     Text Black 12,8 =Copy files to:
  167.   EndWindow
  168.   Input
  169.     StartRow = Window+9
  170.     StartColumn =Window+30
  171.     Action =Enter, Esc
  172.     TextColor =White on Blue
  173.     Default =$BOOTDRIVEDEMO
  174.     Width =15
  175.   EndInput
  176.   On (Esc) Jump=Quit early
  177. ;----------
  178. ;
  179. ;----------
  180. [Check Free Space]
  181.   DiskSpaceReq = 200
  182.   CheckDiskSpace =$INPUTRESULT
  183. ;----------
  184. ;
  185. ;----------
  186. [Pick option]
  187.   ClearPlane
  188.   BuildWindow
  189.     WindowColor =Gray
  190.     Border =Blue
  191.     StartRow =Center
  192.     StartColumn =Center
  193.     ColumnMargin =5
  194.     RowMargin =1
  195.     Text Black =Use the arrow keys to choose a sample button.
  196.     Text Black =
  197.     Text Blue =This is an example of using "buttons"
  198.     Text Blue =to get input from the user.
  199.     Text Blue =
  200.     Text Blue =
  201.     Text Blue =
  202.     Text Blue =
  203.     Text Blue =
  204.     Text Blue =
  205.     ShadowType =Big
  206.     TopTitle    =Please select an installation choice:
  207.     BottomTitle =Press ENTER to continue, ESC to quit
  208.   EndWindow
  209.   Buttons
  210.     RowMargin =1
  211.     ColumnMargin =4
  212.     StartRow =Window+6
  213.     StartCol =Window+8
  214.     ButtonOnColor  =White on Blue
  215.     ButtonOffColor =Black on Gray
  216.     Travel =Horizontal
  217.     Distance =5
  218.     Message =Choice A
  219.     Message =Choice B
  220.   EndButtons
  221.   On (Esc) Jump =Quit early
  222. ;-----------
  223. ;
  224. ;-----------
  225. KeepLogFile =INSTALL.LOG
  226. [Copy Files]
  227.   Text White on Blue 13,18 =Copying file:                                ÉÉ
  228.   StartCopy
  229.     DestPath =$INPUTRESULT
  230.     StatusColumn =28
  231.     StatusRow =18
  232.     StatusLineFG =White
  233.     StatusLineBG =Blue
  234.     CopyFile =FILE1.TXT
  235.     CopyFile =FILE2.TXT
  236.   EndCopy
  237.   SystemDelay =1
  238.   Text White on Blue 13,18 =      Finished copying - Press ENTER to continue     ÉÉ
  239.   Wait =Enter,Esc
  240.   On (Esc) Jump=Quit Early
  241. ;-----------
  242. ;
  243. ;-----------
  244. [Update CONFIG.SYS]
  245.   ClearPlane
  246.   BuildWindow
  247.     WindowColor =White
  248.     Border =Blue
  249.     StartRow =Center
  250.     StartColumn =Center
  251.     ColumnMargin =25
  252.     RowMargin =4
  253.     Text White =
  254.     ShadowType =Big
  255.   EndWindow
  256.   BuildWindow
  257.     WindowColor =Gray
  258.     ShadowType =Small
  259.     StartRow =Window+1
  260.     StartColumn =Window+2
  261.     ColumnMargin =5
  262.     RowMargin =1
  263.     Text Blue =The following line has been added to
  264.     Text Blue =your CONFIG.SYS file
  265.     Text Blue =
  266.     Text Blue =
  267.   EndWIndow
  268.   Text Black on Gray (31,13) =Checking CPU type...
  269.   ModifyConfig
  270.     SaveOriginal =config.old
  271.     AddLine =REM load product w/
  272.     FindString =buffers
  273.     Parameters
  274.       8088 CPU switch
  275.       8086 CPU switch
  276.       V20 CPU switch
  277.       V30 CPU switch
  278.       80286 CPU switch
  279.       386,486 switch
  280.     EndParameters
  281.   EndConfig
  282.   Text Black on Gray (22,13) =$CONFIGRESULT
  283.   Text White on Blue (28,17) =Press ENTER to continue...
  284.   Wait =Enter,Esc
  285.   On (Esc) Jump =Quit early
  286. ;-----------
  287. ;
  288. ;-----------
  289. [Modify AUTOEXEC.BAT]
  290.   ClearPlane
  291.   BuildWindow
  292.     WindowColor =White
  293.     Border =Red
  294.     StartRow =Center
  295.     StartColumn =Center
  296.     ColumnMargin =25
  297.     RowMargin =4
  298.     Text white =
  299.     ShadowType =Big
  300.   EndWindow
  301.   BuildWindow
  302.     WindowColor =Gray
  303.     ShadowType =Small
  304.     ColumnMargin =5
  305.     RowMargin =1
  306.     StartRow =Window+1
  307.     StartColumn =Window+2
  308.     Text Red =The following line has been added to
  309.     Text Red =your AUTOEXEC.BAT file
  310.     Text Red =
  311.     Text Red =
  312.   EndWIndow
  313.   ModifyAutoExec
  314.     SaveOriginal =autoexec.old
  315.     AddLine =echo Thanks for trying Universal INSTALL!
  316.     AddPath =c:\demo
  317.   EndAutoExec
  318.   Text Black on Gray (19,13) =$AUTOEXECRESULT
  319.   Text White on Red (28,17) =Press ENTER to continue...
  320.   Wait =Enter,Esc
  321.   On (Esc) Jump =Quit early
  322. ;---------
  323. ;
  324. ;---------
  325. [Finished]
  326.   ClearPlane
  327.   BuildWindow
  328.     WindowColor =White
  329.     Border =Magenta
  330.     StartRow =4
  331.     StartColumn =Center
  332.     ColumnMargin =2
  333.     RowMargin   =9
  334.     PopUp =No
  335.     ShadowType =Big
  336.     BottomTitle =Press F1 to reboot, ENTER to quit
  337.   EndWindow
  338.   BuildWindow
  339.     WindowColor =Gray
  340.     StartRow =Window+1
  341.     StartColumn =Center
  342.     ColumnMargin =2
  343.     RowMargin =1
  344.     ShadowType =Small
  345.     Text Magenta =Universal INSTALL is now done
  346.     Text Magenta =with the demo installation.
  347.     Text Black =
  348.     Text Black =To reboot your computer now,
  349.     Text Black =press the F1 key. To return
  350.     Text Black =to the DOS prompt now,
  351.     Text Black =press the ENTER key.
  352.     Text Black =
  353.     Text Black =Run README.EXE for more info
  354.     Text Black =
  355.     Text Black =The GoodSoft Co.
  356.     Text Black =1630 30th Street, Suite 235
  357.     Text Black =Boulder, Colorado 80301 USA
  358.   EndWindow
  359.   Wait = Enter,Esc,F1
  360.   On (F1) Jump =Reboot
  361.   Jump =Quit
  362. ;---------
  363. ;
  364. ;---------
  365. [Quit early]
  366.   BuildWindow
  367.     WindowColor =Gray
  368.     Border =Magenta
  369.     StartRow =6
  370.     StartColumn =Center
  371.     ColumnMargin =3
  372.     RowMargin =2
  373.     PopUp =Yes
  374.     ShadowType =Big
  375.     Text Magenta =This is an example of a pop up window that
  376.     Text Magenta =you might use to warn the user that the
  377.     Text Magenta =installation is not complete.
  378.     Text Black =
  379.     Text Black =If you quit the installation at this point,
  380.     Text Black =not everything for the "Demo Install" is in place.
  381.     Text Black =If you wish to quit now, we recommend running
  382.     Text Black =INSTALL again at a later date.
  383.     TopTitle =Warning: Installation is not complete!
  384.     BottomTitle =Press ESC to quit, ENTER to continue installation
  385.   EndWindow
  386.   Wait = Enter,Esc
  387.   CloseWindow
  388.   On (Enter) Jump =Input directory
  389.   Jump =Quit
  390. ;-----------
  391. ;
  392. ;-----------
  393. [About Demo]
  394.   BuildWindow
  395.     WindowColor =Gray
  396.     Border =Red
  397.     StartRow =4
  398.     StartColumn =15
  399.     ColumnMargin =3
  400.     RowMargin =1
  401.     PopUp =Yes
  402.     ShadowType =Big
  403.     Text Black =This demo was created to showcase some of the
  404.     Text Black =features of "Universal INSTALL", a try it
  405.     Text Black =before you buy it installation package.
  406.     Text Black =
  407.     Text Black =Universal INSTALL allows software developers
  408.     Text Black =to quickly and painlessly create an install
  409.     Text Black =program for their product. Remember: first
  410.     Text Black =impressions of your product mean a lot!
  411.     Text Black =
  412.     Text Black =Please be sure to run README.EXE for more info
  413.     TopTitle =About this demo
  414.     BottomTitle =Press ENTER to continue installation
  415.   EndWindow
  416.   Wait = Enter
  417.   CloseWindow
  418.   Jump =Intro window
  419. ;-------
  420. ;
  421. ;-------
  422. [Reboot]
  423.   ClearScreen
  424.   WarmReboot
  425. ;-----
  426. ;
  427. ;-----
  428. [Quit]
  429.   ClearScreen
  430.   Stop
  431.